# 闭包
def outer(logo):
    def inner(msg):
        # logo = "abc"
        print(f"<{logo}>{msg}<{logo}>")

    return inner


f1 = outer("我的世界")
f1("你好")
f1("你好2")


def outer1(num1):
    def inner1(num2):
        nonlocal num1
        num1 += num2
        print(num1)

    return inner1


f3 = outer1(10)
f3(10)
f3(10)
f3(10)
